package com.piece.module.flowable.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@ApiModel("流程模型视图对象")
public class WfModel implements Serializable {

    @ApiModelProperty("模型主键")
    private String modelId;

    @ApiModelProperty("模型名称")
    private String modelName;

    @ApiModelProperty("模型Key")
    private String modelKey;

    @ApiModelProperty("分类编码")
    private String category;

    @ApiModelProperty("版本")
    private Integer version;

    @ApiModelProperty("表单类型")
    private Integer formType;

    @ApiModelProperty("表单主键")
    private Long formId;

    @ApiModelProperty("模型描述")
    private String description;

    @ApiModelProperty("流程xml")
    private String bpmnXml;

    @ApiModelProperty("表单内容")
    private String content;

    @ApiModelProperty(value = "是否保存为新版本")
    private Boolean newVersion;

    @ApiModelProperty("创建时间")
    @JSONField(format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
}
